(C) 1996 AROS - The Amiga Replacement OS


NAME
#include <proto/exec.h>
ULONG CacheControl()
SYNOPSIS
ULONG cacheBits
ULONG cacheMask

LOCATION
In SysBase at offset 108
FUNCTION
This function will provide global control of all the processor instruction and data caches. It is not possible to have per task control.

The actions undertaken by this function are very CPU dependant, however the actions performed will match the specified options as close as is possible.

The commands currently defined in the include file exec/execbase.h are closely related to the cache control register of the Motorola MC68030 CPU.

INPUTS
cacheBits
The new state of the bits
cacheMask
A mask of the bits you wish to change.
RESULT
oldBits - The complete value of the cache control bits prior to the call of this function.

Your requested actions will have been performed. As a side effect this function will also cause the caches to be cleared.

NOTES
On CPU's without a separate instruction and data cache, these will be considered as equal.

EXAMPLE
BUGS
SEE ALSO
CacheClearE(), CacheClearU()
INTERNALS
This function requires replacing in $(KERNEL), or possibly even $(ARCH) in some cases.

HISTORY
05.08.1997 iaint
Kernel Changes - These are mostly functions which are normally implemented by the kernel, but might not be.